package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.SupplierBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ISupplierMapper extends BaseMapper<SupplierBean> {

    @Select("SELECT * FROM t_supplier;")
    @ResultMap("supplierMap")
    List<SupplierBean> findAll();

    void addList(@Param("supplierList") List<SupplierBean> list);
}
